GtkBuilder: Add an error code for 'invalid ID'
authorMatthias Clasen <mclasen@redhat.com>
Tue, 28 Apr 2015 02:52:03 +0000 (22:52 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 28 Apr 2015 02:52:03 +0000 (22:52 -0400)
This is in preparation for reporting such errors through GError.

gtk/gtkbuilder.h

index 12815d2f0a614dccf4c87e8b21bf05a751d02b84..9f19fe1b3b0d0fc546e22504c54974bc660cf518 100644 (file)
@@ -64,6 +64,7 @@ typedef struct _GtkBuilderPrivate GtkBuilderPrivate;
  * @GTK_BUILDER_ERROR_TEMPLATE_MISMATCH: The wrong type was specified in a composite class’s template XML
  * @GTK_BUILDER_ERROR_INVALID_PROPERTY: The specified property is unknown for the object class.
  * @GTK_BUILDER_ERROR_INVALID_SIGNAL: The specified signal is unknown for the object class.
+ * @GTK_BUILDER_ERROR_INVALID_ID: An object id is unknown
  *
  * Error codes that identify various errors that can occur while using
  * #GtkBuilder.
@@ -82,7 +83,8 @@ typedef enum
   GTK_BUILDER_ERROR_OBJECT_TYPE_REFUSED,
   GTK_BUILDER_ERROR_TEMPLATE_MISMATCH,
   GTK_BUILDER_ERROR_INVALID_PROPERTY,
-  GTK_BUILDER_ERROR_INVALID_SIGNAL
+  GTK_BUILDER_ERROR_INVALID_SIGNAL,
+  GTK_BUILDER_ERROR_INVALID_ID
 } GtkBuilderError;
 
 GDK_AVAILABLE_IN_ALL